package com.ruoyi.energy.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 仪台账运营对象 omp_ny_meter_account2
 *
 * @author cjie
 * @date 2022-02-25
 */
@Data
@ApiModel
public class NyMeterAccount2 extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** Id */
    @ApiModelProperty(value = "Id")
    private String id;

    @Excel(name = "仪表编码")
    @ApiModelProperty(value = "仪表编码")
    private String meterNum;

    private String meterName;

    private String meterType;

    /** 父Id */
    @ApiModelProperty(value = "父Id")
    private String parentId;

    @Excel(name = "上级编码")
    @ApiModelProperty(value = "上级编码")
    private String parentNum;

    /** 仪表类别(总表,私表..) */
    @Excel(name = "仪表类别")
    @ApiModelProperty(value = "仪表类别(总表,私表..)")
    private String category;

    /** 用途 */
    @Excel(name = "用途")
    @ApiModelProperty(value = "用途")
    private String use1;

    /** 房源Id */
    @ApiModelProperty(value = "房源Id")
    private String roomId;

    /** 楼栋编号 */
    @Excel(name = "楼栋编号")
    @ApiModelProperty(value = "楼栋编号")
    private String buildingNum;

//    /** 园区编号 */
    @Excel(name = "园区编号")
    @ApiModelProperty(value = "园区编号")
    private String parkNum;
//
    /** 园区id */
    @Excel(name = "园区id")
    @ApiModelProperty(value = "园区id")
    private String parkId;

    /** 安装位置 */
    @Excel(name = "安装位置")
    @ApiModelProperty(value = "安装位置")
    private String installPosition;

    /** 企业编号 */
    @Excel(name = "企业编号")
    @ApiModelProperty(value = "企业编号")
    private String enterpriseId;

    /** 企业名称 */
    @Excel(name = "企业名称")
    @ApiModelProperty(value = "企业名称")
    private String enterpriseName;

    /** 分摊池值 */
    @Excel(name = "分摊池值")
    @ApiModelProperty(value = "分摊池值")
    private BigDecimal shareInitialValue;

    /** 当前读数 */
    @Excel(name = "上期读数")
    @ApiModelProperty(value = "上期读数")
    private BigDecimal lastValue;

    /** 上期抄表日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    //@Excel(name = "上期抄表日期", width = 30, dateFormat = "yyyy-MM-dd",sort=5)
    @ApiModelProperty(value = "上期抄表日期")
    private Date lastCheckDate;

    /** 当前读数 */
    @Excel(name = "当前读数")
    @ApiModelProperty(value = "当前读数")
    private BigDecimal currentValue;

    /** 当前读日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "当前读日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "当前读日期")
    private Date currentCheckDate;

    private String meterModel;

    @Excel(name = "倍率")
    @ApiModelProperty(value = "倍率")
    private BigDecimal magnification;

    //是否超额
    private String overMax;
    //最大额度
    private BigDecimal maxValue;
}
